# def Fun(num):
#     z = 1
#     for i in range(1,num + 1):
#         z *= i
#
#     return z
#
# x = int(input("请输入:>"))
# z = Fun(x)
# print(z)

# letters = ['P','y','t','h','o','n']
# print(''.join(letters))


# String = "hello world!"
# print(String.count('o'))
# z = len(String)
#
# for i in range(0,z):
#     if('o' == String[i]):
#         print(i ,end=' ')




# d1 = {'a':3,'b':2,'c':1}
# print(max(d1,key=d1.get))
# print(min(d1,key=d1.get))
# d1['d'] = '9'
# d1['a'] = 8
# del d1['b']
# print(d1)



class Car:
    def __init__(self, cno, brand, price):
        self.cno = cno
        self.brand = brand
        self.price = price

    def print_info(self):
        print(f"车牌号: {self.cno}")
        print(f"品牌: {self.brand}")
        print(f"价格: {self.price} 元")


if __name__ == "__main__":
    car1 = Car("鄂K66666", "BWM", 150000)
    car1.print_info()


# def max_min(list):
#     x = max(list)
#     y = min(list)
#     return x,y
#
# lst = [1,2,3,4,5]
# x , y =max_min(lst)
# print("最大值是:> %d " %x)
# print("最小值是:> %d " %y)


#def sun_num(num):
#     z = 0
#     if num > 0:
#         for i in range(1, num + 1):
#             if (i >= 0):
#                 z += i
#     else:
#         for i in range(num , 2):
#             if (i >= 0):
#                 z += i
#     return z
